]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
loginDialog: Fix timing issue
authorNaïm Favier <n@monade.li>
Tue, 18 Jan 2022 22:46:57 +0000 (23:46 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 20 Jan 2022 20:40:40 +0000 (20:40 +0000)
Fix the first task of the timed login batch not returning the hold on
`_waitForItemForUser`.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2116>

js/gdm/loginDialog.js

index d48ea5416d505dcc54044c468dba12293dc8608e..802c7c260ec41f5b357245a83a03c9d816c5722a 100644 (file)
@@ -1059,9 +1059,10 @@ var LoginDialog = GObject.registerClass({
         let tasks = [
             () => {
                 if (this._disableUserList)
-                    return;
+                    return null;
 
                 this._timedLoginUserListHold = this._waitForItemForUser(userName);
+                return this._timedLoginUserListHold;
             },
 
             () => {